import {createApp} from 'vue'
import App from './App.vue'
import router from "@/router";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


import * as Icons from '@element-plus/icons-vue'
const app=createApp(App);
for (let iconName in Icons) {
    app.component(iconName, Icons[iconName])
}
app.use(ElementPlus,{locale});
app.use(router);
app.mount("#app");
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}